<%@ include file="/WEB-INF/jsp/include.jsp"%>
<c:url var="login_url" value="/j_spring_security_check" />
<form:form class="form-signin" name="f" action="${login_url}" method="POST"
	modelAttribute="bindableLogin" commandName="bindableLogin">

	<form:label path="j_username">User</form:label>
	<form:input path="j_username" type="text" />
	<form:errors path="j_username" />

	<form:label path="j_password">Password</form:label>
	<form:input path="j_password" type="password" />
	<form:errors path="j_password" />

	<form:label path="_spring_security_remember_me" cssClass="checkbox">
		<form:checkbox path="_spring_security_remember_me" value="true" />
		Remember me
	</form:label>

	<button type="submit" class="btn btn-primary">Login</button>
</form:form>
<c:if test="${not empty error}">
	<p>
		Your login attempt was not successful, try again. <br>Cause:
		${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
	</p>
</c:if>


